package com.maelarak.android.lolcharbuilder.models;

import java.util.ArrayList;

/**
 * LolCharBuilder
 * Created by MaelArak on 09/06/13.
 */
public class Item {
    private static final String CLASSTAG = "Item.java";
    private StringBuffer name;
    private int recipePrice;
    private int fullPrice;
    private ArrayList<Stat> statList;
    private ArrayList<Item> recipe;

    public Item(StringBuffer name, int recipePrice, int fullPrice,
                ArrayList<Stat> statList, ArrayList<Item> recipe){
        super();
        this.name = name;
        this.recipePrice = recipePrice;
        this.fullPrice = fullPrice;
        this.statList = statList;
        this.recipe = recipe;
    }

    public Item(){
        super();
        this.name = null;
        this.recipePrice = 0;
        this.fullPrice = 0;
        this.statList = null;
        this.recipe = null;
    }

    public Item(StringBuffer itemname){
        super();
        this.name = itemname;
        //TODO Parsing du xml pour récupérer les infos.
    }

    public String getName() {
        return new String(name);
    }

    public void setName(StringBuffer name) {
        this.name = name;
    }

    public int getRecipePrice() {
        return recipePrice;
    }

    public void setRecipePrice(int recipePrice) {
        this.recipePrice = recipePrice;
    }

    public int getFullPrice() {
        return fullPrice;
    }

    public void setFullPrice(int fullPrice) {
        this.fullPrice = fullPrice;
    }

    public ArrayList<Stat> getStatList() {
        return statList;
    }

    public void setStatList(ArrayList<Stat> statList) {
        this.statList = statList;
    }

    public ArrayList<Item> getRecipe() {
        return recipe;
    }

    public void setRecipe(ArrayList<Item> recipe) {
        this.recipe = recipe;
    }
}
